import { defineStore } from 'pinia';
import { ref } from 'vue';

// 登陆注册页面切换
export const useLoginStore = defineStore('LoginTZ', () => {

    const activeTab = ref<'login' | 'register' | 'reset'>('login');

    const setActiveTab = (newTab: 'login' | 'register' | 'reset') => {
        console.log(`Tab changing from ${activeTab.value} to ${newTab}`);
        activeTab.value = newTab;
    };


    return { activeTab, setActiveTab };
});

